home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 050a.dms / 050a.adf / TEXTS / chapter01.txt < prev    next >
Text File  |  1992-02-26  |  5KB  |  119 lines

  1.                   The Absolute Beginners Guide To Amos V2.0               
  2.                   ------------------------------------------         
  3.                           by A.Pine & S.Bye (C) 1994                        
  4.                           --------------------------                
  5.                                  Chapter One                
  6.                                  -----------
  7. The purpose of this tutorial is to help complete beginners and by beginners 
  8. I mean people who know how to load Amos but are confused by the hundreds of 
  9. commands and want a simple explanation of what they do. 
  10.  
  11. The best place to start is at the beginning, so I will be taking you step by
  12. step through some simple but very useful commands, when you have finished
  13. reading this chapter load in EXAMPLE1.Amos.
  14. Don`t worry if you do not understand everything first time as the example 
  15. program offers more information and advice on this chapter. 
  16.  
  17. These are the commands that we will be covering in this chapter:
  18.  
  19. CLS N
  20.  
  21. PAPER N
  22.  
  23. CURS OFF
  24.  
  25. HIDE
  26.  
  27. PRINT 
  28.  
  29. WAIT KEY
  30.  
  31. EDIT
  32.  
  33. I bet you can already guess what some of the above commands do?
  34. Here is a detailed rundown on each:
  35.  
  36. CLS N
  37. -----
  38. CLS is an abbreviation of CLear Screen and does exactly that, it clears the
  39. screen to any colour you want, that is what the N represents. N, in this case
  40. can be any number from 0 to 15. The number you assign to CLS represents a
  41. colour so if you typed CLS 0 Amos would clear the screen of any text or 
  42. graphics and turn the screen black. You can use CLS without a colour and CLS
  43. will automatically use 0. So CLS on it's own would have the same effect as 
  44. CLS 0.
  45.  
  46. When you load EXAMPLE1.Amos try changing the number after CLS to see it`s
  47. effect. Don`t worry, you can`t do any harm by typing CLS 197540 or something,
  48. Amos will just tell you that you have a syntax error in your program and 
  49. place the cursor on the offending line.
  50.  
  51. Paper N
  52. -------
  53. Paper is the background colour of any text you PRINT to the screen, the N
  54. works exactly the same as the N in CLS N.  This is one of those commands
  55. that you will understand better by changing the value of N and running the
  56. example program. Make sure you tinker with it to understand it properly.
  57.  
  58. CURS OFF
  59. --------
  60. This is a nice straight forward command. It simply gets rid of the flashing
  61. text cursor that would otherwise appear on your screen.  
  62. You can also use CURS ON to reinstate the cursor if needed.  
  63. Try changing or deleting the CURS OFF command to see it`s effects in action.
  64.  
  65. HIDE
  66. ----
  67. Luckily for me this command is easy to use and easy to describe. 
  68. HIDE, literally HIDEs the mouse pointer from view while your program runs.
  69. The opposite to HIDE is SHOW which reinstates the mouse pointer.
  70.  
  71. PRINT
  72. -----
  73. PRINT enables you to PRINT text to the screen. Sounds great, but there is a
  74. small catch. Whatever you want PRINTed must be inside quotes this isn`t as 
  75. bad as it sounds when you look at the following examples:
  76.  
  77. PRINT "HELLO THERE"
  78. PRINT "JUST REMEMBER TO PUT"
  79. PRINT "THE QUOTES"
  80. PRINT "BEFORE AND AFTER YOUR TEXT"
  81. PRINT "Don`t forget you can use numbers and symbols as well"
  82. PRINT "LIKE THIS  @#$%^&*()_+|1234567890"
  83.  
  84. Take a close look at EXAMPLE1.amos and experiment by changing the text inside
  85. the quotes.
  86.  
  87. WAIT KEY
  88. --------
  89. One of my favourite commands this one. Nice and straight forward and 
  90. powerful.  WAIT KEY will force Amos to WAIT until a KEY is pressed by the
  91. user.  Try taking this out of EXAMPLE1.Amos to see what happens.
  92.  
  93. EDIT
  94. ----
  95. Edit stops your program and returns you back to the EDITor where you can 
  96. continue adding to and making changes to your masterpiece.
  97. This command is not really necessary at all, as all you have to do is press
  98. the space bar to return to the Editor when a program ends.  
  99. EDIT just saves you pressing the space bar and looks cleaner and neater.
  100. Delete it from EXAMPLE1.Amos to see what it`s like without it.
  101.  
  102. We have covered seven commands already. I know it`s a lot to take on
  103. board and understand in one go so read the above explanations of each 
  104. command again if need be.  It doesn`t matter wether you can remember them but
  105. it does matter if you can UNDERSTAND them.  After loading EXAMPLE1.Amos and 
  106. playing about with it for a while, get a note book and jot down briefly in 
  107. your own words what each command does, because I can guarantee you that you 
  108. will not remember them later on and a quick glance at your notes will refresh
  109. your memory. If you have an Amos manual (some people own the cover disk 
  110. version) look up each of the above commands for a different explanation of 
  111. them. This can often help a lot.
  112.  
  113. I have mentioned EXAMPLE1.Amos so many times you must be champing at 
  114. the bit to LOAD it, so off you go and do it.  Don`t be afraid to read this
  115. chapter again if there is anything you do not understand. Good luck.
  116.  
  117.                              End of chapter one
  118.                              ^^^^^^^^^^^^^^^^^^
  119.